package com.bto.solar.work.dto.order;

import com.alibaba.fastjson2.JSONArray;
import com.bto.solar.work.dto.FormBtnsDto;
import com.bto.solar.work.entity.Insurance;
import com.bto.solar.work.entity.OrderState;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/11 17:30
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class OrderGridDto {
    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("并网合闸时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Timestamp startTime;

    @ApiModelProperty("验收时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Timestamp checkAcceptTime;

    @ApiModelProperty("电厂交易编号")
    private String generatorNumber;

    @ApiModelProperty("原电表用户编号（选填）")
    private String orgEleclMeterUserNo;

    @ApiModelProperty("并网备注（选填）")
    private String annotation;

    @ApiModelProperty("电站发电量监控截图（发电三天）")
    private JSONArray monitor;

    @ApiModelProperty("完工容量（W）（投保容量调用）")
    private Integer installedCapacityReality;

    @ApiModelProperty("保险信息")
    private List<Insurance> insuranceList;


    @ApiModelProperty("任务状态")
    private OrderState orderState;


    @ApiModelProperty("按钮信息")
    private FormBtnsDto btns;

}
